import request from '@/utils/request'

// 查询业态物资清单列表
export function listRegionMaterial(query) {
  return request({
    url: '/cld/regionMaterial/list',
    method: 'get',
    params: query
  })
}

// 查询业态物资清单详细
export function getRegionMaterial(regionMaterialId) {
  return request({
    url: '/cld/regionMaterial/' + regionMaterialId,
    method: 'get'
  })
}

// 新增业态物资清单
export function addRegionMaterial(data) {
  return request({
    url: '/cld/regionMaterial',
    method: 'post',
    data: data
  })
}

// 修改业态物资清单
export function updateRegionMaterial(data) {
  return request({
    url: '/cld/regionMaterial',
    method: 'put',
    data: data
  })
}

// 删除业态物资清单
export function delRegionMaterial(regionMaterialId) {
  return request({
    url: '/cld/regionMaterial/' + regionMaterialId,
    method: 'delete'
  })
}
